package ai.plantdata.Behavior.mode.VisitorPattern.test;

import ai.plantdata.Behavior.mode.VisitorPattern.interfaces.ComputerPart;
import ai.plantdata.Behavior.mode.VisitorPattern.interfaces.ComputerPartVisitor;
import ai.plantdata.Behavior.mode.VisitorPattern.interfaces.impl.Computer;
import ai.plantdata.Behavior.mode.VisitorPattern.interfaces.impl.ComputerPartDisplayVisitor;

/**
 * @Author: WangHui
 * @Date: 2020/12/24 15:04
 * @Description:
 */
public class VisitorPatternDemo {
    public static void main(String[] args) {
        ComputerPart computer = new Computer();
        computer.accept(new ComputerPartDisplayVisitor());
    }
}
